package com.codestudy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * (Collection)实体类
 *
 * @author makejava
 * @since 2024-04-11 08:56:03
 */
@Data
@ApiModel(value = "收藏表", description = "收藏表")
public class Collection implements Serializable {
    private static final long serialVersionUID = 799834343763400866L;

    private Integer id;

    private Integer userId;
    /**
     * 收藏：0 未收藏，1 已收藏
     */
    private Integer active;
    /**
     * 收藏时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime timeStamp;

    private Integer noteId;

}

